查询与用户授权记录(授权协议号)
通过authorization_code,商户查询与用户授权关系
请求参数 | 类型 | 描述 |
---|---|---|
authorization_code | string | 授权协议号 |
query | object | 声明请求的查询参数 |
service_id | string | 服务ID |
sub_mchid | string | 子商户号 |
php
$instance->v3->payscore->partner->permissions->authorizationCode->_authorization_code_->getAsync([
'authorization_code' => '1234323JKHDFE1243252',
'query' => [
'service_id' => '500001',
'sub_mchid' => '1230000109',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
php
$instance->chain('v3/payscore/partner/permissions/authorization-code/{authorization_code}')->getAsync([
'authorization_code' => '1234323JKHDFE1243252',
'query' => [
'service_id' => '500001',
'sub_mchid' => '1230000109',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
php
$instance['v3/payscore/partner/permissions/authorization-code/{authorization_code}']->getAsync([
'authorization_code' => '1234323JKHDFE1243252',
'query' => [
'service_id' => '500001',
'sub_mchid' => '1230000109',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
php
$response = $instance->v3->payscore->partner->permissions->authorizationCode->_authorization_code_->get([
'authorization_code' => '1234323JKHDFE1243252',
'query' => [
'service_id' => '500001',
'sub_mchid' => '1230000109',
],
]);
print_r(json_decode((string) $response->getBody(), true));
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
php
$response = $instance->chain('v3/payscore/partner/permissions/authorization-code/{authorization_code}')->get([
'authorization_code' => '1234323JKHDFE1243252',
'query' => [
'service_id' => '500001',
'sub_mchid' => '1230000109',
],
]);
print_r(json_decode((string) $response->getBody(), true));
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
php
$response = $instance['v3/payscore/partner/permissions/authorization-code/{authorization_code}']->get([
'authorization_code' => '1234323JKHDFE1243252',
'query' => [
'service_id' => '500001',
'sub_mchid' => '1230000109',
],
]);
print_r(json_decode((string) $response->getBody(), true));
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
返回字典 | 类型 | 描述 |
---|---|---|
service_id | string | 服务ID |
appid | string | 服务商应用ID |
mchid | string | 商户号 |
openid | string | 服务商公众号下的用户标识 |
authorization_code | string | 授权协议号 |
authorization_state | string | 授权状态 |
notify_url | string | 授权通知地址 |
cancel_authorization_time | string | 最近一次解除授权时间 |
authorization_success_time | string | 最近一次授权成功时间 |
sub_mchid | string | 子商户号 |
sub_appid | string | 子商户应用ID |
sub_openid | string | 子商户公众号下的用户标识 |
user_risk_level | number | 用户分层 |
risk_level_version | number | 分层版本 |